<template>
    <div>
        <el-form ref="form" :model="form" label-width="80px">
            <el-form-item label="实验名称">
                <el-input v-model="form.name"></el-input>
            </el-form-item>
            <!-- 富文本编辑器 -->
            <el-form-item label="描述">
                <wangeditor :editorHtml="form.description" @getEditorCon="getEditorForm"></wangeditor>
            </el-form-item>
        </el-form>
    </div>
</template>
<script>
import wangeditor from '@/components/wangEditor/index.vue'
export default {
  props: {
    form: Object
  },
  components: {
    wangeditor
  },
  methods: {
    getEditorForm(data) {
      this.$emit('getEditorData', data)
    }
  }
}
</script>
